package com.itheima.sfbx.insurance.test;

import java.util.HashMap;
import java.util.Map;

/**
 * sfbx-cloud
 * 2025/1/10 11:31
 * PriceResult By 1mZ
 */
public class PriceResult {
    private static Map<String,D> map =new HashMap<>();

    static {
        map.put("normal",new Normal());
        map.put("Vip",new Vip());
        map.put("Svip",new Svip());
    }
    public static void main(String[] args) {
        String qianduan = "Vip";

        D d = map.get(qianduan);
        double count = d.count(100.0);
        System.out.println(count+"<--价格是");
    }
}
